Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*based on PR #510 'Finished KPI Tests'* Finishes first round of testing #517

Merged
merged 469 commits into from
Jul 7, 2023

Conversation

anchit-chandran
Copy link
Collaborator

Additional test areas from previous PR include the following points, alongside refactors where tests were implemented to ensure regressions are prevented.

1 Permissions testing

  • For each user role, specified by the E12 team, we assert they can / can't access various url endpoints, receiving the appropriate status code

2 KPI Aggregation

  • For the main 'Organisation' page which shows summary statistics for KPIs across the E12 audit, we have implemented tests to assert the aggregations output the expected numbers, using seeded Cases with known KPI pass/fail/ineligible outcomes. Particuarly for the entire KPI aggregation function, we use 100 Cases, with all tests passing.

3 Form calculation

  • We have implemented tests to ensure, on a model basis, that both numerator and denominators denoting audit progress output the correct values, given known inputs. This includes cases where certain answers cause different numbers of options to be available, such as with new Episodes

anchit-chandran and others added 30 commits June 28, 2023 15:23
…t_kpi_scoring + passing; requires refactoring to be cleaner

Signed-off-by: Anchit <[email protected]>
…um_valproate=None set in E12CaseFactory constructor

Signed-off-by: Anchit <[email protected]>
anchit-chandran and others added 27 commits July 7, 2023 16:11
Signed-off-by: Anchit <[email protected]>
Signed-off-by: anchit-chandran <[email protected]>
…s expected_field constant dataclass

Signed-off-by: anchit-chandran <[email protected]>
…ted_multiaxial_diagnosis_episode_fields`

Signed-off-by: anchit-chandran <[email protected]>
…c / uncertain episodes

Signed-off-by: anchit-chandran <[email protected]>
…on requesting post-diagnosis into tooltip #468

Signed-off-by: anchit-chandran <[email protected]>
Copy link
Member

@pacharanero pacharanero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally & all passing

@pacharanero pacharanero merged commit c59f5e3 into development Jul 7, 2023
@pacharanero pacharanero deleted the perms-tests branch July 7, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants